home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Fonts / FaceMaintainer.cp < prev    next >
Text File  |  2000-06-23  |  437b  |  24 lines

  1. // FaceMaintainer.cp
  2.  
  3. #ifndef FaceMaintainer_h
  4. #include "FaceMaintainer.h"
  5. #endif
  6.  
  7. FaceMaintainer::FaceMaintainer()
  8.   : port( GrafPortObject::Current() ),
  9.      old( GrafPortObject::Current().Face() )
  10.   {
  11.   }
  12.  
  13. FaceMaintainer::FaceMaintainer( const Face& toUse )
  14.   : port( GrafPortObject::Current() ),
  15.      old( GrafPortObject::Current().Face() )
  16.   {
  17.     port.SetFace( toUse );
  18.   }
  19.  
  20. void FaceMaintainer::Reset() const
  21.   {
  22.     port.SetFace( old );
  23.   }
  24.